Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space: Use RHS of & when refining subtypes #16573

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

dwijnand
Copy link
Member

This allows for a more precise type argument to be inferred, which leads
to correct exhaustivity results.

@dwijnand dwijnand linked an issue Dec 22, 2022 that may be closed by this pull request
This allows for a more precise type argument to be inferred, which leads
to correct exhaustivity results.
Copy link
Member

@SethTisue SethTisue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dale and I looked at this together and discussed it pretty thoroughly and although it involves code that I'm not expert on, the change seems logical and safe to me.

@SethTisue SethTisue marked this pull request as ready for review December 22, 2022 19:00
@SethTisue SethTisue removed their assignment Dec 22, 2022
@dwijnand dwijnand merged commit c84e255 into scala:main Dec 22, 2022
@dwijnand dwijnand deleted the intersection-both branch December 22, 2022 21:21
@Kordyjan Kordyjan added this to the 3.3.0 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False warning about non-exhaustive match
3 participants